import React, { useState } from 'react'

import BraftEditor from 'braft-editor'
import 'braft-editor/dist/index.css'
export default () => {
    const [val, setVal] = useState(BraftEditor.createEditorState(null))
    return (
        <div>
            <BraftEditor
                style={{ border: '1px solid #d1d1d1', borderRadius: "5px" }}
                value={val}
                onChange={() => {

                }}
                onSave={() => {

                }}
            />
        </div>
    );
}